{{include file="default/Public/header.html"}}
<div id="pageTop">
<div class="tabs">
<ul>
	<li><a href='{{U url="frole/add?modelid=$modelid"}}' {{if $action_name==
		"add"}}class="selected"{{/if}}>添加角色</a></li>
	<li><a href='{{U url="frole/manage?modelid=$modelid"}}' {{if $action_name==
		"manage"}}class="selected" {{/if}} rel="tabsContent1">管理角色</a></li>
</ul>
</div>
</div>
<div id="pageCo">
	<div class="listForm">
		<table cellpadding="0" cellspacing="0">
			<thead>
				<tr>
					<th width="50">ID</th>
				    <th width="130">名称</th>
				    <th width="130">标识</th>
				    <th>描述</th>
			        <th width="60">状态</th>
				    <th width="80">操作授权</th>
				    <th width="150">管理操作</th>
				</tr>
			</thead>
			<tbody>
				{{foreach from=$data.info item=v}}
				  <tr>
				    <td>{{$v.role_id}}</td>
				    <td><a href='{{U url="fmanager/manage?role_id=`$v.role_id`"}}' title="查看成员">{{$v.nickname}}</a></td>
				    <td>{{$v.name}}</td>  
				    <td>{{$v.remark}}</td>
			        <td>
			        {{if $v.role_id!='1'}}
				        {{if $v.status>0}}
				        <a href='{{U url="frole/status?status=0&role_id=`$v.role_id`"}}' title="点击禁用">运行</a>
				        {{else}}
				        <a href='{{U url="frole/status?status=1&role_id=`$v.role_id`"}}' title="点击启用" style="color:red;">禁用</a>
				        {{/if}}
				    {{else}}
				    	<font color="#cccccc">运行</font>
				    {{/if}}
			        </td>
				    <td><a href='{{U url="frbac/power?role_id=`$v.role_id`"}}'>编辑授权</a></td>  
				    <td>
				    <a href='{{U url="fmanager/manage?role_id=`$v.role_id`"}}'>成员管理</a> | 
				    <a href='{{U url="frole/edit?role_id=`$v.role_id`"}}'>修改</a> | 
				    {{if $v.role_id!='1'}}
				    	<a href='{{U url="frole/delete?role_id=`$v.role_id`"}}' onclick="return window.confirm('此操作不可恢复，你确定要删除该角色？');">删除</a>
				    {{else}}
				    	<font color="#cccccc">删除</font>
				    {{/if}}
				    </td>
				  </tr>
				  {{/foreach}}
			</tbody>
		</table>
	</div>
</div>
<div class="pageList">{{$data.pages}}
<ul class="clearit"></ul>
</div>
</div>
{{include file="default/Public/footer.html"}}
